import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { ListaComponent } from './lista/lista.component';
import { AlkatreszfelvetelComponent } from './alkatreszfelvetel/alkatreszfelvetel.component';
import { SzerkesztesComponent } from './szerkesztes/szerkesztes.component';
import { KeresesComponent } from './kereses/kereses.component';
import { AboutComponent } from './about/about.component';
import { LoginComponent } from './login/login.component';
import { SignupComponent } from './signup/signup.component';
import { EmailverComponent } from './emailver/emailver.component';

const routes: Routes = [
  {path:'', component:ListaComponent},
  {path:'lista', component:ListaComponent},
  {path:'alkatreszfelvetel', component:AlkatreszfelvetelComponent},
  {path:'szerkesztes', component:SzerkesztesComponent},
  {path:'kereses', component:KeresesComponent},
  {path:'about', component:AboutComponent},
  {path:'login', component:LoginComponent},
  {path:'signup', component:SignupComponent},
  {path:'emailver', component:EmailverComponent},
  {path:'**', redirectTo:'lista'}
];

@NgModule({
  imports: [RouterModule.forRoot(routes)],
  exports: [RouterModule]
})
export class AppRoutingModule { }
